#ifndef __MAIN_H
#define __MAIN_H

#include <allegro.h>
#include <assert.h>
#include <stdio.h>

extern BITMAP* buffer;
#define GFX_MODE GFX_AUTODETECT_WINDOWED
//#define GFX_MODE GFX_AUTODETECT_FULLSCREEN
#define WIDTH 640
#define HEIGHT 480
#define FPS 60
#define MAX_PLAYERS 16
#define MAP_WIDTH 64
#define MAP_HEIGHT MAP_WIDTH

#define TOWERHACK_DEBUG 1
#define TOWERHACK_DEBUG_DUNGEON 1
#define TOWERHACK_DEBUG_DUNGEON_ANIM 0

#define WINGFX_SET 2 // Index of the button/window set to use globally

enum { STATE_UNDEFINED, STATE_MENU, STATE_LOBBY, STATE_GAME };
extern int global_state;

void change_state (int new_state);

#endif
